<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div class="pageFormContent" layoutH="56">
	<fieldset>
	<dl>
		<dt>用户名称：</dt>
		<dd><input name="userName" class="required" maxlength="18" type="text" 
			onkeyup="value=value.replace(/[^\u4E00-\u9FA5a-zA-Z0-9]/g,'')"	
			size="30" alt="请输入用户名" value = "${userModel.userName}"/></dd>
	</dl>
	
	<dl>
		<dt>权限：</dt>
		<dd>
			<select class="combox" name="roleId">
				<option value="0">请选择</option>
				<c:forEach var="role" items="${roleList}">
					<option value="${role.id}" ${userModel.roleId== role.id?"selected='true'":""}>${role.roleName}</option>
				</c:forEach>
			</select>
	  </dd>
	</dl>
	
	<dl>
		<dt>用户密码：</dt>
		<dd><input name="passWord" class="required" type="password"  
			onkeyup="value=value.replace(/[^\u4E00-\u9FA5a-zA-Z0-9]/g,'')"
			maxlength="18" size="30" alt="密码" value = "${userModel.passWord}" minlength="6"/></dd>
	</dl>
	</fieldset>
</div>
<div class="formBar">
	<ul>
		<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
		<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
		<li>
			<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
		</li>
	</ul>
</div>
